package com.woniuxy.dudugua.entity;


import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;
import java.util.List;
public class Product implements Serializable {
    private  Category  category;
    private  ProductSku productSku;


    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public ProductSku getProductSku() {
        return productSku;
    }

    public void setProductSku(ProductSku productSku) {
        this.productSku = productSku;
    }

    /**
    * 商品id
    */
    @Id
    private Integer id;

    /**
    * 商品类型id
    */
    private Integer categoryId;

    /**
    * 店铺id
    */
    private Integer storeId;

    /**
    * 商品名称
    */
    private String productName;

    /**
    * 商品状态(1:上架、2：下架)
    */
    private Integer status;

    /**
    * 运费
    */
    private Double freight;

    /**
    * 店铺名称
    */
    private String storeName;

    /**
    * 销量
    */
    private Integer sales;

    /**
    * 发货地址
    */
    private String shipAddress;

    private ProductImages productImages;

    private List<ProductSku> productSkus;


    public List<ProductSku> getProductSkus() {
        return productSkus;
    }

    public void setProductSkus(List<ProductSku> productSkus) {
        this.productSkus = productSkus;
    }

    public ProductImages getProductImages() {
        return productImages;
    }

    public void setProductImages(ProductImages productImages) {
        this.productImages = productImages;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Double getFreight() {
        return freight;
    }

    public void setFreight(Double freight) {
        this.freight = freight;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public Integer getSales() {
        return sales;
    }

    public void setSales(Integer sales) {
        this.sales = sales;
    }

    public String getShipAddress() {
        return shipAddress;
    }

    public void setShipAddress(String shipAddress) {
        this.shipAddress = shipAddress;
    }

    @Override
    public String toString() {
        return "Product{" +
                "category=" + category +
                ", productSku=" + productSku +
                ", id=" + id +
                ", categoryId=" + categoryId +
                ", storeId=" + storeId +
                ", productName='" + productName + '\'' +
                ", status=" + status +
                ", freight=" + freight +
                ", storeName='" + storeName + '\'' +
                ", sales=" + sales +
                ", shipAddress='" + shipAddress + '\'' +
                ", productImages=" + productImages +
                ", productSkus=" + productSkus +
                '}';
    }
}